/* 学校参与热度排行卡片样式 */
.school-ranking-card {
  border-radius: 12px;
  padding: 6px 0;
  transition: all 0.3s ease;
  flex-grow: 1;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ranking-title {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.ranking-link {
  color: var(--primary-color);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ranking-link:hover {
  color: var(--secondary-color);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 8px;
}

/* 自定义滚动条样式 */
.ranking-list::-webkit-scrollbar {
  width: 4px;
}

.ranking-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 2px;
}

.ranking-list::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 2px;
}

.ranking-list::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

.ranking-item {
  display: flex;
  align-items: center;
}

.ranking-number {
  width: 20px;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  margin-right: 12px;
}

.ranking-number-1 {
  color: var(--accent-color);
}

.ranking-number-2 {
  color: var(--primary-color);
}

.ranking-number-3 {
  color: var(--secondary-color);
}

.ranking-number-4,
.ranking-number-5,
.ranking-number-6 {
  color: var(--text-primary);
}

.ranking-content {
  flex: 1;
  min-width: 0;
}

.school-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-dark);
  border-radius: 9999px;
  overflow: hidden;
}

.ranking-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease-in-out;
}

.ranking-progress-accent {
  background-color: var(--accent-color);
}

.ranking-progress-primary {
  background-color: var(--primary-color);
}

.ranking-progress-secondary {
  background-color: var(--secondary-color);
}

.ranking-progress-other {
  background-color: var(--text-primary);
}

.ranking-count {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  margin-left: 12px;
  white-space: nowrap;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .ranking-list {
    max-height: 180px;
  }

  .ranking-item {
    gap: 8px;
  }

  .ranking-number {
    width: 18px;
    font-size: 11px;
    margin-right: 8px;
  }

  .school-name {
    font-size: 13px;
  }

  .ranking-count {
    font-size: 11px;
    margin-left: 8px;
  }
}

@media (max-width: 480px) {
  .ranking-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ranking-list {
    max-height: 160px;
  }
}
